import http from "../utils/http/service";

// 新增消息
export const postMessageAdd = (data): any => {
  return http.post("/rdms-admin/sysMessage/add", data);
};

// 获取列表
export const postMessageList = (data): any => {
  return http.post("/rdms-admin/sysMessage/messageList", data);
};

// 删除
export const postMessageDelete = (data): any => {
  return http.post(`/rdms-admin/sysMessage/delete`, data);
};

// 更新
export const postMessageUpdate = (data): any => {
  return http.post("/rdms-admin/sysMessage/update", data);
};

// 详情
export const postMessageInfo = (data): any => {
  return http.get(`/rdms-admin/sysMessage/info/${data.id}`);
};

// 首页已读未读数据
export const postMessageAll = (data): any => {
  return http.post(`/rdms-admin/sysMessage/perMsgList`, data);
};
